<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<html>
<head>
	<jsp:include page="../layout/_import.jsp"></jsp:include>
	<link rel="stylesheet" href="css/login.css">
	<title>添加客户界面</title>
</head>
<body>
<jsp:include page="../layout/_nav.jsp"></jsp:include>
<header>
	<div class="jumbotron jumbotron-fluid">
		<div class="container">
			<h1 class="display-4">社区宠物诊所</h1>
			<p class="lead">This is a modified jumbotron that occupies the entire horizontal space of its parent.</p>
		</div>
	</div>
</header>
<main>
	<div class="container">
		<c:if test="${not empty msg}">
			<div class="alert alert-danger" role="alert">
				${msg}
			</div>
		</c:if>
		<form action="/custom" method="post">
			<input type="hidden" name="m" value ="add">
			<div class="row">
				<span class="col col-md-2">
					客户姓名
				</span>
				<div class="col col-md-10">
					<input type="text" class="form-control" name="name">
				</div>
			</div>
			<div class="row">
				<span class="col col-md-2">
					联系电话
				</span>
				<div class="col col-md-10">
					<input type="password" class="form-control" name="tel">
				</div>
			</div>
			<div class="row">
				<span class="col col-md-2">
					家庭地址
				</span>
				<div class="col col-md-10">
					<input type="address" class="form-control" name="address">
				</div>
			</div>
			<div class="row">
				<input type="submit" class="btn btn-primary" value="添加"/>
				<input type="reset" class="btn btn-primary" value="重置"/>
			</div>
		</form>
	</div>
</main>
<script>
	function changCode(input) {
        input.src='CheckCode?rand=' + Math.random();
        return false;
    }
</script>
</body>
</html>
